<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>按钮</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">

  <link rel="stylesheet" href="../../assets/gougu/css/gougu.css">
  <style>
      .img-big{width:400px; height:300px; border: 1px solid #eee; margin: 20px;}
      .img-cover{width:400px;}
  </style>
</head>

<body>

  <div class="p-4">
        <div class="layui-card">
          <div class="layui-card-header"><h3>图片垂直、水平居中</h3></div>
          <div class="layui-card-body">
            <div class="img-big gg-img-center">
              <img src="../../assets/gougu/images/icon.png" alt="">
            </div>
          </div>
        </div>

        <div class="layui-card">
          <div class="layui-card-header"><h3>小圆角图片</h3></div>
          <div class="layui-card-body">
            <div class='gg-img-radius'>
              <img src="../../assets/gougu/images/icon.png" alt="">
            </div>
          </div>
        </div>

        <div class="layui-card">
          <div class="layui-card-header"><h3>圆角图片</h3></div>
          <div class="layui-card-body">
            <div class='gg-img-round'>
              <img src="../../assets/gougu/images/icon.png" alt="">
          </div>
          </div>
        </div>
        <div class="layui-card">
          <div class="layui-card-header"><h3>图片自适应裁剪</h3></div>
          <div class="layui-card-body">
            <div class="img-cover">
              <div class='gg-img-cover cover-4-3'>
                <img src="../../assets/gougu/images/nonepic600x360.jpg" alt="">
              </div>
            </div>
            <p>4:3比例截取</p>
            <br>
            <div class="img-cover">
              <div class='gg-img-cover cover-16-9'>
                <img src="../../assets/gougu/images/nonepic600x360.jpg" alt="">
              </div>
            </div>
            <p>16:9比例截取</p>
          </div>
        </div>
  </div>


  <script>
    const moduleInit = ['tool'];
    function gouguInit() {

    }
  </script>
  <script src="../../assets/layui/layui.js"></script>
  <script src="../../assets/gougu/gouguInit.js"></script>
</body>

</html>